﻿@using Db8.Data
@model Db8.Data.Claim
@{
    ViewBag.Title = "Create Claim";
}
<section class="content">
    <div style="float:right">@Html.Partial("_Navigation")</div>
    <section class="view-header">
        @Html.ActionLink("Claim Index", "Index") 
        @if (!string.IsNullOrEmpty(Request["filter"]))
        {
            <text>&gt; </text>@Html.ActionLink(Request["filter"], "Index", new { filter = Request["filter"] })
        }
        &gt; <span previewlength="40">Enter a New Claim</span>
    </section>
    <section class="view-body">
        <div class="edit-container">@Html.Partial("_ClaimCreate", Model)</div>
    </section>
</section>
@section scripts {
<script type="text/javascript" src="@Url.Content("~/Scripts/jquery.validate.min.js")"></script>
<script type="text/javascript" src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")"></script>
<script type="text/javascript" src="@Url.Content("~/Scripts/db8-ui.js")"></script>
<script type="text/javascript">
    (function ($) {
        $("#Save").click(function () {
            $(this).closest(".edit-container").find("form:first").submit();
        });
    } (jQuery));
</script>
}